/*
 * =====================================================================================
 *
 *       Filename:  Grass.cpp
 *
 *    Description:  
 *
 *        Version:  1.0
 *        Created:  01/06/12 04:37:46
 *       Revision:  none
 *       Compiler:  g++
 *
 *         Author:  LittleQ Su (), 98703060@nccu.edu.tw
 *        Company:  National Chengchi University, The Department of Computer Science
 *
 * =====================================================================================
 */
#include "Grass.h"

Grass::Grass(World *world, int x, int y) : Creature(world, x, y) {
    this -> _id_word = GRASS;
    this -> _age = 0;
    this -> _max_age = 6;
    this -> _gen_age[0] = 3;
    this -> _gen_age[1] = 5;
}

void Grass::action() {    
    genChild();
    _age++;
    this -> detectDead();
}

